< previous page page_355 next page >

Page 355
z0375-01.gif
Figure 11.22
B-spline blending functions
give the curve local control.
You can see from Figure 11.21 that at most, three of the functions are nonzero for any given value of t. Only the three control points corresponding to those three functions contribute to the value of the curve's coordinates.
Also notice that each blending function is nonzero for only some t values. The blending function B3,3(t), for example, is nonzero only for 1 <= t <= 4. This is what gives the Bspline local control of its shape. If you move one control point, the B-spline changes only for values of t where that point's blending function is nonzero. Other parts of the curve remain unchanged.
Figure 11.22 shows two B-splines with positions marked on the curve where t is 0, 1, 2, 3, 4, and 5. Only control point number 3 differs in the two curves. Figure 11.21 shows that the corresponding blending function B3,3(t) is nonzero only when 1 < t < 4, so this control point affects only the middle part of the curve. You can see from Figure 11.22 that the two curves are identical where t <= 1 and where t >= 4.
The blending functions Bi,k(t) are defined recursively in terms of a set of knot values that make up a knot vector. The knot values relate the values of t to the control points and they help determine the shape of the curve. The most common knot values are used to build uniform nonperiodic B-splines. The knot values are defined by:
e10a6a0a59f035e870d90cca05b85fce.gif
knot (i) =    0         if i < k
      i - k+ 1          if k <= i <= N
      N - k + 2         if N < i

 
< previous page page_355 next page >